package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.feign.facback.SeckillProductFeignApiFacback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//远程调用
@FeignClient(name = "seckill-service", fallback = SeckillProductFeignApiFacback.class)
public interface SeckillProductFeignApi {
    @RequestMapping("/seckillProduct/selectByTime")
    Result<List<SeckillProductVo>> queryByTime(@RequestParam("time") int time);
}
